<template>
    <BPolyline v-if="!useBigeMap" 
        @initd="handleInitd" 
        v-bind="{...$props, ...$attrs}"
    >
        <slot></slot>
    </BPolyline>
    <BigeMapPolyline v-if="useBigeMap == 'bigemap'" 
        @initd="handleInitd" 
        v-bind="{...$props, ...$attrs}"
    >
        <slot></slot>
    </BigeMapPolyline>
    <TiandiMapPolyline v-if="useBigeMap == 'tiandimap'" 
        @initd="handleInitd" 
        v-bind="{...$props, ...$attrs}"
    >
        <slot></slot>
    </TiandiMapPolyline>
</template>

<script lang="ts">
import {useBigeMap} from '@/consts';

export default defineComponent({
    // extends: ElSelect,
    // inheritAttrs: false,

    props: {
    },
    setup(props, {attrs}) {
    },
    computed: {
        useBigeMap() {
            return useBigeMap.value
        },
    },
    methods: {
        handleInitd(e:any) {
            const self: any = this;
            self.$emit('initd', e);
        },
    }
})
</script>
<style lang="scss" scoped>

</style>